﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]}{sdcms[seotitle]}</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/artlist.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/vote.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
{if sdcms[sys_mobile]}<script src="{webroot}lib/js/mobile.js"></script>{/if}
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script>
$(function(){$(".percentage .active").each(function(){$(this).animate({"width":$(this).attr("point")+"%"},'slow');});});
</script>
</head>

<body>
    {sdcms:include("sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a> > 查看投票</div>
    <div class="w980 mt10 mc" id="container">
        <div class="left">
            <div class="w610 b">
                <div class="title">查看投票</div>
                {sdcms:rs top="1" field="id,title,voteitem,voteresult,votepercent" table="sd_expand_vote" where="islock=1 and id=[id]"}
                {rs:eof}没有投票{/rs:eof}
                <h4>{$rs[title]}</h4>
                <ul class="survey_list">
                    {dim voteitem_arr:voteitem_arr=split($rs[voteitem],",")}
                    {dim voteresult_arr:voteresult_arr=split($rs[voteresult],",")}
                    {dim votepercent_arr:votepercent_arr=split($rs[votepercent],",")}
                    {for i=0 to ubound(voteitem_arr)}
                    <li>
                        <p class="item">{asp i+1}. {voteitem_arr(i)}</p>
                        <div class="percentage_wrap">
                        <span class="percentage"><span style="width:0%;" point="{replace(votepercent_arr(i),"%","")}" class="active"></span></span> {votepercent_arr(i)} ({voteresult_arr(i)}人)
                        </div>
                    </li>
                    {/for}
    </ul>
    {/sdcms:rs}
            </div>
        </div>
        <div class="right">
            <div class="b">
                <div class="subject">最新投票</div>
                <ul class="toplist">
                    {sdcms:rs field="id,title" table="sd_expand_vote" where="islock=1 and id=[id]"}
                    <li><a href="?id={$rs[id]}" title="{$rs[title]}">{sdcms.cutstr($rs[title],30,1)}</a></li>{/sdcms:rs}
                </ul>
            </div>
        </div>
    </div>
    {sdcms:include("sdcms_foot.asp")}